<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>QS_Commodity Demo</title>
		<link href="../css/qs_ui.css" rel="stylesheet" type="text/css" />
		<link href="../css/qs.css" rel="stylesheet" type="text/css" />
		<link href="../css/quote2_yuntao.css" rel="stylesheet" type="text/css" />
		<script>
			var GOLBAL_DATA = {};
			var gData = {};
			var push = {};		
		</script>
	</head>
	<body>
		<div id="commodity" style="width:850px;height:470px;"></div>
		<script src="../lib/jquery.js" type="text/javascript"></script>
		<script type="text/javascript" src="../js/ui/util.js"></script>
		<script type="text/javascript" src="../js/ui/tabmenu.js"></script>
		<script type="text/javascript" src="../js/ui/dragdrop.js"></script>
		<script type="text/javascript" src="../js/ui/scrollpanel.js"></script>
		<script type="text/javascript" src="../js/ui/dataGrid.js"></script>
		<script type="text/javascript" src="../js/sys/DBHelper.js" ></script>
		<script type="text/javascript" src="../js/com/commodity.js" ></script>
		<script language="javascript" type="text/javascript">
			var commodity=new QS_Commodity();
			commodity.init("commodity",null,null,850,470);
			var oData = {};
			lastPrice=1.12;
			highPrice=1.59;
			setInterval(function(){
				oData={
					LastPrice:{
						oValue: lastPrice,
						dataType: "f"
					},
					HighPrice:{
						oValue: highPrice,
						dataType: "f"
					}
				};
				gData['67:@CL0K']={	
					LastPrice:lastPrice+=0.01,
					HighPrice:highPrice-=0.01
				};
				commodity.updateData('67:@CL0K',oData);
			},3000);
			
		</script>
	</body>
</html>
